package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.PageData;
import com.woniu.entity.dto.QueryAdminDTO;
import com.woniu.pojo.Admin;

/**
 * @Title
 * @Author 武术有栖
 * @Description:
 */
public interface IAdminService extends IService<Admin> {
    Admin adminIsExist(String username,String password);

    void saveToken(Admin admin);

    Admin getByToken(String token);

    PageData select(Integer currentPage, Integer pageSize, QueryAdminDTO adminDTO);

    Boolean getByName(String name);
}
